package com.vanguard.p2p.business.example;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PaymentScheduleDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PaymentScheduleDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPsdIdIsNull() {
            addCriterion("psd_id is null");
            return (Criteria) this;
        }

        public Criteria andPsdIdIsNotNull() {
            addCriterion("psd_id is not null");
            return (Criteria) this;
        }

        public Criteria andPsdIdEqualTo(Long value) {
            addCriterion("psd_id =", value, "psdId");
            return (Criteria) this;
        }

        public Criteria andPsdIdNotEqualTo(Long value) {
            addCriterion("psd_id <>", value, "psdId");
            return (Criteria) this;
        }

        public Criteria andPsdIdGreaterThan(Long value) {
            addCriterion("psd_id >", value, "psdId");
            return (Criteria) this;
        }

        public Criteria andPsdIdGreaterThanOrEqualTo(Long value) {
            addCriterion("psd_id >=", value, "psdId");
            return (Criteria) this;
        }

        public Criteria andPsdIdLessThan(Long value) {
            addCriterion("psd_id <", value, "psdId");
            return (Criteria) this;
        }

        public Criteria andPsdIdLessThanOrEqualTo(Long value) {
            addCriterion("psd_id <=", value, "psdId");
            return (Criteria) this;
        }

        public Criteria andPsdIdIn(List<Long> values) {
            addCriterion("psd_id in", values, "psdId");
            return (Criteria) this;
        }

        public Criteria andPsdIdNotIn(List<Long> values) {
            addCriterion("psd_id not in", values, "psdId");
            return (Criteria) this;
        }

        public Criteria andPsdIdBetween(Long value1, Long value2) {
            addCriterion("psd_id between", value1, value2, "psdId");
            return (Criteria) this;
        }

        public Criteria andPsdIdNotBetween(Long value1, Long value2) {
            addCriterion("psd_id not between", value1, value2, "psdId");
            return (Criteria) this;
        }

        public Criteria andBidAmountIsNull() {
            addCriterion("bid_amount is null");
            return (Criteria) this;
        }

        public Criteria andBidAmountIsNotNull() {
            addCriterion("bid_amount is not null");
            return (Criteria) this;
        }

        public Criteria andBidAmountEqualTo(BigDecimal value) {
            addCriterion("bid_amount =", value, "bidAmount");
            return (Criteria) this;
        }

        public Criteria andBidAmountNotEqualTo(BigDecimal value) {
            addCriterion("bid_amount <>", value, "bidAmount");
            return (Criteria) this;
        }

        public Criteria andBidAmountGreaterThan(BigDecimal value) {
            addCriterion("bid_amount >", value, "bidAmount");
            return (Criteria) this;
        }

        public Criteria andBidAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("bid_amount >=", value, "bidAmount");
            return (Criteria) this;
        }

        public Criteria andBidAmountLessThan(BigDecimal value) {
            addCriterion("bid_amount <", value, "bidAmount");
            return (Criteria) this;
        }

        public Criteria andBidAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("bid_amount <=", value, "bidAmount");
            return (Criteria) this;
        }

        public Criteria andBidAmountIn(List<BigDecimal> values) {
            addCriterion("bid_amount in", values, "bidAmount");
            return (Criteria) this;
        }

        public Criteria andBidAmountNotIn(List<BigDecimal> values) {
            addCriterion("bid_amount not in", values, "bidAmount");
            return (Criteria) this;
        }

        public Criteria andBidAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bid_amount between", value1, value2, "bidAmount");
            return (Criteria) this;
        }

        public Criteria andBidAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("bid_amount not between", value1, value2, "bidAmount");
            return (Criteria) this;
        }

        public Criteria andBidIdIsNull() {
            addCriterion("bid_id is null");
            return (Criteria) this;
        }

        public Criteria andBidIdIsNotNull() {
            addCriterion("bid_id is not null");
            return (Criteria) this;
        }

        public Criteria andBidIdEqualTo(Long value) {
            addCriterion("bid_id =", value, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdNotEqualTo(Long value) {
            addCriterion("bid_id <>", value, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdGreaterThan(Long value) {
            addCriterion("bid_id >", value, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdGreaterThanOrEqualTo(Long value) {
            addCriterion("bid_id >=", value, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdLessThan(Long value) {
            addCriterion("bid_id <", value, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdLessThanOrEqualTo(Long value) {
            addCriterion("bid_id <=", value, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdIn(List<Long> values) {
            addCriterion("bid_id in", values, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdNotIn(List<Long> values) {
            addCriterion("bid_id not in", values, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdBetween(Long value1, Long value2) {
            addCriterion("bid_id between", value1, value2, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdNotBetween(Long value1, Long value2) {
            addCriterion("bid_id not between", value1, value2, "bidId");
            return (Criteria) this;
        }

        public Criteria andTotalAmountIsNull() {
            addCriterion("total_amount is null");
            return (Criteria) this;
        }

        public Criteria andTotalAmountIsNotNull() {
            addCriterion("total_amount is not null");
            return (Criteria) this;
        }

        public Criteria andTotalAmountEqualTo(BigDecimal value) {
            addCriterion("total_amount =", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotEqualTo(BigDecimal value) {
            addCriterion("total_amount <>", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountGreaterThan(BigDecimal value) {
            addCriterion("total_amount >", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("total_amount >=", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountLessThan(BigDecimal value) {
            addCriterion("total_amount <", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("total_amount <=", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountIn(List<BigDecimal> values) {
            addCriterion("total_amount in", values, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotIn(List<BigDecimal> values) {
            addCriterion("total_amount not in", values, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_amount between", value1, value2, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_amount not between", value1, value2, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andPrincipalIsNull() {
            addCriterion("principal is null");
            return (Criteria) this;
        }

        public Criteria andPrincipalIsNotNull() {
            addCriterion("principal is not null");
            return (Criteria) this;
        }

        public Criteria andPrincipalEqualTo(BigDecimal value) {
            addCriterion("principal =", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalNotEqualTo(BigDecimal value) {
            addCriterion("principal <>", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalGreaterThan(BigDecimal value) {
            addCriterion("principal >", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("principal >=", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalLessThan(BigDecimal value) {
            addCriterion("principal <", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalLessThanOrEqualTo(BigDecimal value) {
            addCriterion("principal <=", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalIn(List<BigDecimal> values) {
            addCriterion("principal in", values, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalNotIn(List<BigDecimal> values) {
            addCriterion("principal not in", values, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("principal between", value1, value2, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("principal not between", value1, value2, "principal");
            return (Criteria) this;
        }

        public Criteria andInterestIsNull() {
            addCriterion("interest is null");
            return (Criteria) this;
        }

        public Criteria andInterestIsNotNull() {
            addCriterion("interest is not null");
            return (Criteria) this;
        }

        public Criteria andInterestEqualTo(BigDecimal value) {
            addCriterion("interest =", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestNotEqualTo(BigDecimal value) {
            addCriterion("interest <>", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestGreaterThan(BigDecimal value) {
            addCriterion("interest >", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("interest >=", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestLessThan(BigDecimal value) {
            addCriterion("interest <", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestLessThanOrEqualTo(BigDecimal value) {
            addCriterion("interest <=", value, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestIn(List<BigDecimal> values) {
            addCriterion("interest in", values, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestNotIn(List<BigDecimal> values) {
            addCriterion("interest not in", values, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("interest between", value1, value2, "interest");
            return (Criteria) this;
        }

        public Criteria andInterestNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("interest not between", value1, value2, "interest");
            return (Criteria) this;
        }

        public Criteria andMonthIndexIsNull() {
            addCriterion("month_index is null");
            return (Criteria) this;
        }

        public Criteria andMonthIndexIsNotNull() {
            addCriterion("month_index is not null");
            return (Criteria) this;
        }

        public Criteria andMonthIndexEqualTo(Integer value) {
            addCriterion("month_index =", value, "monthIndex");
            return (Criteria) this;
        }

        public Criteria andMonthIndexNotEqualTo(Integer value) {
            addCriterion("month_index <>", value, "monthIndex");
            return (Criteria) this;
        }

        public Criteria andMonthIndexGreaterThan(Integer value) {
            addCriterion("month_index >", value, "monthIndex");
            return (Criteria) this;
        }

        public Criteria andMonthIndexGreaterThanOrEqualTo(Integer value) {
            addCriterion("month_index >=", value, "monthIndex");
            return (Criteria) this;
        }

        public Criteria andMonthIndexLessThan(Integer value) {
            addCriterion("month_index <", value, "monthIndex");
            return (Criteria) this;
        }

        public Criteria andMonthIndexLessThanOrEqualTo(Integer value) {
            addCriterion("month_index <=", value, "monthIndex");
            return (Criteria) this;
        }

        public Criteria andMonthIndexIn(List<Integer> values) {
            addCriterion("month_index in", values, "monthIndex");
            return (Criteria) this;
        }

        public Criteria andMonthIndexNotIn(List<Integer> values) {
            addCriterion("month_index not in", values, "monthIndex");
            return (Criteria) this;
        }

        public Criteria andMonthIndexBetween(Integer value1, Integer value2) {
            addCriterion("month_index between", value1, value2, "monthIndex");
            return (Criteria) this;
        }

        public Criteria andMonthIndexNotBetween(Integer value1, Integer value2) {
            addCriterion("month_index not between", value1, value2, "monthIndex");
            return (Criteria) this;
        }

        public Criteria andDeadLineIsNull() {
            addCriterion("dead_line is null");
            return (Criteria) this;
        }

        public Criteria andDeadLineIsNotNull() {
            addCriterion("dead_line is not null");
            return (Criteria) this;
        }

        public Criteria andDeadLineEqualTo(Date value) {
            addCriterion("dead_line =", value, "deadLine");
            return (Criteria) this;
        }

        public Criteria andDeadLineNotEqualTo(Date value) {
            addCriterion("dead_line <>", value, "deadLine");
            return (Criteria) this;
        }

        public Criteria andDeadLineGreaterThan(Date value) {
            addCriterion("dead_line >", value, "deadLine");
            return (Criteria) this;
        }

        public Criteria andDeadLineGreaterThanOrEqualTo(Date value) {
            addCriterion("dead_line >=", value, "deadLine");
            return (Criteria) this;
        }

        public Criteria andDeadLineLessThan(Date value) {
            addCriterion("dead_line <", value, "deadLine");
            return (Criteria) this;
        }

        public Criteria andDeadLineLessThanOrEqualTo(Date value) {
            addCriterion("dead_line <=", value, "deadLine");
            return (Criteria) this;
        }

        public Criteria andDeadLineIn(List<Date> values) {
            addCriterion("dead_line in", values, "deadLine");
            return (Criteria) this;
        }

        public Criteria andDeadLineNotIn(List<Date> values) {
            addCriterion("dead_line not in", values, "deadLine");
            return (Criteria) this;
        }

        public Criteria andDeadLineBetween(Date value1, Date value2) {
            addCriterion("dead_line between", value1, value2, "deadLine");
            return (Criteria) this;
        }

        public Criteria andDeadLineNotBetween(Date value1, Date value2) {
            addCriterion("dead_line not between", value1, value2, "deadLine");
            return (Criteria) this;
        }

        public Criteria andBidrequestIdIsNull() {
            addCriterion("bidrequest_id is null");
            return (Criteria) this;
        }

        public Criteria andBidrequestIdIsNotNull() {
            addCriterion("bidrequest_id is not null");
            return (Criteria) this;
        }

        public Criteria andBidrequestIdEqualTo(Long value) {
            addCriterion("bidrequest_id =", value, "bidrequestId");
            return (Criteria) this;
        }

        public Criteria andBidrequestIdNotEqualTo(Long value) {
            addCriterion("bidrequest_id <>", value, "bidrequestId");
            return (Criteria) this;
        }

        public Criteria andBidrequestIdGreaterThan(Long value) {
            addCriterion("bidrequest_id >", value, "bidrequestId");
            return (Criteria) this;
        }

        public Criteria andBidrequestIdGreaterThanOrEqualTo(Long value) {
            addCriterion("bidrequest_id >=", value, "bidrequestId");
            return (Criteria) this;
        }

        public Criteria andBidrequestIdLessThan(Long value) {
            addCriterion("bidrequest_id <", value, "bidrequestId");
            return (Criteria) this;
        }

        public Criteria andBidrequestIdLessThanOrEqualTo(Long value) {
            addCriterion("bidrequest_id <=", value, "bidrequestId");
            return (Criteria) this;
        }

        public Criteria andBidrequestIdIn(List<Long> values) {
            addCriterion("bidrequest_id in", values, "bidrequestId");
            return (Criteria) this;
        }

        public Criteria andBidrequestIdNotIn(List<Long> values) {
            addCriterion("bidrequest_id not in", values, "bidrequestId");
            return (Criteria) this;
        }

        public Criteria andBidrequestIdBetween(Long value1, Long value2) {
            addCriterion("bidrequest_id between", value1, value2, "bidrequestId");
            return (Criteria) this;
        }

        public Criteria andBidrequestIdNotBetween(Long value1, Long value2) {
            addCriterion("bidrequest_id not between", value1, value2, "bidrequestId");
            return (Criteria) this;
        }

        public Criteria andPayDateIsNull() {
            addCriterion("pay_date is null");
            return (Criteria) this;
        }

        public Criteria andPayDateIsNotNull() {
            addCriterion("pay_date is not null");
            return (Criteria) this;
        }

        public Criteria andPayDateEqualTo(Date value) {
            addCriterion("pay_date =", value, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateNotEqualTo(Date value) {
            addCriterion("pay_date <>", value, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateGreaterThan(Date value) {
            addCriterion("pay_date >", value, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateGreaterThanOrEqualTo(Date value) {
            addCriterion("pay_date >=", value, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateLessThan(Date value) {
            addCriterion("pay_date <", value, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateLessThanOrEqualTo(Date value) {
            addCriterion("pay_date <=", value, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateIn(List<Date> values) {
            addCriterion("pay_date in", values, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateNotIn(List<Date> values) {
            addCriterion("pay_date not in", values, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateBetween(Date value1, Date value2) {
            addCriterion("pay_date between", value1, value2, "payDate");
            return (Criteria) this;
        }

        public Criteria andPayDateNotBetween(Date value1, Date value2) {
            addCriterion("pay_date not between", value1, value2, "payDate");
            return (Criteria) this;
        }

        public Criteria andReturnTypeIsNull() {
            addCriterion("return_type is null");
            return (Criteria) this;
        }

        public Criteria andReturnTypeIsNotNull() {
            addCriterion("return_type is not null");
            return (Criteria) this;
        }

        public Criteria andReturnTypeEqualTo(Integer value) {
            addCriterion("return_type =", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeNotEqualTo(Integer value) {
            addCriterion("return_type <>", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeGreaterThan(Integer value) {
            addCriterion("return_type >", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("return_type >=", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeLessThan(Integer value) {
            addCriterion("return_type <", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeLessThanOrEqualTo(Integer value) {
            addCriterion("return_type <=", value, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeIn(List<Integer> values) {
            addCriterion("return_type in", values, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeNotIn(List<Integer> values) {
            addCriterion("return_type not in", values, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeBetween(Integer value1, Integer value2) {
            addCriterion("return_type between", value1, value2, "returnType");
            return (Criteria) this;
        }

        public Criteria andReturnTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("return_type not between", value1, value2, "returnType");
            return (Criteria) this;
        }

        public Criteria andPaymentScheduleIdIsNull() {
            addCriterion("payment_schedule_id is null");
            return (Criteria) this;
        }

        public Criteria andPaymentScheduleIdIsNotNull() {
            addCriterion("payment_schedule_id is not null");
            return (Criteria) this;
        }

        public Criteria andPaymentScheduleIdEqualTo(Long value) {
            addCriterion("payment_schedule_id =", value, "paymentScheduleId");
            return (Criteria) this;
        }

        public Criteria andPaymentScheduleIdNotEqualTo(Long value) {
            addCriterion("payment_schedule_id <>", value, "paymentScheduleId");
            return (Criteria) this;
        }

        public Criteria andPaymentScheduleIdGreaterThan(Long value) {
            addCriterion("payment_schedule_id >", value, "paymentScheduleId");
            return (Criteria) this;
        }

        public Criteria andPaymentScheduleIdGreaterThanOrEqualTo(Long value) {
            addCriterion("payment_schedule_id >=", value, "paymentScheduleId");
            return (Criteria) this;
        }

        public Criteria andPaymentScheduleIdLessThan(Long value) {
            addCriterion("payment_schedule_id <", value, "paymentScheduleId");
            return (Criteria) this;
        }

        public Criteria andPaymentScheduleIdLessThanOrEqualTo(Long value) {
            addCriterion("payment_schedule_id <=", value, "paymentScheduleId");
            return (Criteria) this;
        }

        public Criteria andPaymentScheduleIdIn(List<Long> values) {
            addCriterion("payment_schedule_id in", values, "paymentScheduleId");
            return (Criteria) this;
        }

        public Criteria andPaymentScheduleIdNotIn(List<Long> values) {
            addCriterion("payment_schedule_id not in", values, "paymentScheduleId");
            return (Criteria) this;
        }

        public Criteria andPaymentScheduleIdBetween(Long value1, Long value2) {
            addCriterion("payment_schedule_id between", value1, value2, "paymentScheduleId");
            return (Criteria) this;
        }

        public Criteria andPaymentScheduleIdNotBetween(Long value1, Long value2) {
            addCriterion("payment_schedule_id not between", value1, value2, "paymentScheduleId");
            return (Criteria) this;
        }

        public Criteria andFrommemberIdIsNull() {
            addCriterion("fromMember_id is null");
            return (Criteria) this;
        }

        public Criteria andFrommemberIdIsNotNull() {
            addCriterion("fromMember_id is not null");
            return (Criteria) this;
        }

        public Criteria andFrommemberIdEqualTo(Long value) {
            addCriterion("fromMember_id =", value, "frommemberId");
            return (Criteria) this;
        }

        public Criteria andFrommemberIdNotEqualTo(Long value) {
            addCriterion("fromMember_id <>", value, "frommemberId");
            return (Criteria) this;
        }

        public Criteria andFrommemberIdGreaterThan(Long value) {
            addCriterion("fromMember_id >", value, "frommemberId");
            return (Criteria) this;
        }

        public Criteria andFrommemberIdGreaterThanOrEqualTo(Long value) {
            addCriterion("fromMember_id >=", value, "frommemberId");
            return (Criteria) this;
        }

        public Criteria andFrommemberIdLessThan(Long value) {
            addCriterion("fromMember_id <", value, "frommemberId");
            return (Criteria) this;
        }

        public Criteria andFrommemberIdLessThanOrEqualTo(Long value) {
            addCriterion("fromMember_id <=", value, "frommemberId");
            return (Criteria) this;
        }

        public Criteria andFrommemberIdIn(List<Long> values) {
            addCriterion("fromMember_id in", values, "frommemberId");
            return (Criteria) this;
        }

        public Criteria andFrommemberIdNotIn(List<Long> values) {
            addCriterion("fromMember_id not in", values, "frommemberId");
            return (Criteria) this;
        }

        public Criteria andFrommemberIdBetween(Long value1, Long value2) {
            addCriterion("fromMember_id between", value1, value2, "frommemberId");
            return (Criteria) this;
        }

        public Criteria andFrommemberIdNotBetween(Long value1, Long value2) {
            addCriterion("fromMember_id not between", value1, value2, "frommemberId");
            return (Criteria) this;
        }

        public Criteria andTomemberIdIsNull() {
            addCriterion("toMember_id is null");
            return (Criteria) this;
        }

        public Criteria andTomemberIdIsNotNull() {
            addCriterion("toMember_id is not null");
            return (Criteria) this;
        }

        public Criteria andTomemberIdEqualTo(Long value) {
            addCriterion("toMember_id =", value, "tomemberId");
            return (Criteria) this;
        }

        public Criteria andTomemberIdNotEqualTo(Long value) {
            addCriterion("toMember_id <>", value, "tomemberId");
            return (Criteria) this;
        }

        public Criteria andTomemberIdGreaterThan(Long value) {
            addCriterion("toMember_id >", value, "tomemberId");
            return (Criteria) this;
        }

        public Criteria andTomemberIdGreaterThanOrEqualTo(Long value) {
            addCriterion("toMember_id >=", value, "tomemberId");
            return (Criteria) this;
        }

        public Criteria andTomemberIdLessThan(Long value) {
            addCriterion("toMember_id <", value, "tomemberId");
            return (Criteria) this;
        }

        public Criteria andTomemberIdLessThanOrEqualTo(Long value) {
            addCriterion("toMember_id <=", value, "tomemberId");
            return (Criteria) this;
        }

        public Criteria andTomemberIdIn(List<Long> values) {
            addCriterion("toMember_id in", values, "tomemberId");
            return (Criteria) this;
        }

        public Criteria andTomemberIdNotIn(List<Long> values) {
            addCriterion("toMember_id not in", values, "tomemberId");
            return (Criteria) this;
        }

        public Criteria andTomemberIdBetween(Long value1, Long value2) {
            addCriterion("toMember_id between", value1, value2, "tomemberId");
            return (Criteria) this;
        }

        public Criteria andTomemberIdNotBetween(Long value1, Long value2) {
            addCriterion("toMember_id not between", value1, value2, "tomemberId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}